const seq = require('sequelize')
const time = require('../time')

module.exports = {
  NAME: 'chat_group_info',
  TABLE: {
    group_id: {
      type: seq.INTEGER(11),
      primaryKey: true,
      unique: true,
      autoIncrement: true,
      comment: 'group_id 主键，自增',
      field: 'group_id' //  相应的字段名称
    },
    group_name: {
      type: seq.STRING(128),
      comment: '群名称',
      field: 'group_name',
      required: true,
    },
    group_notice: {
      type: seq.TEXT,
      comment: '群公告',
      field: 'group_notice', //  相应的字段名称
    },
    group_avatar: {
      type: seq.TEXT,
      comment: '群头像',
      field: 'group_avatar'
    },
    group_creater:{
      type: seq.INTEGER(11),
      comment: '群主id',
      field: 'group_creater' //  相应的字段名称
    },
    ...time.create_date,
    ...time.update_date,
    ...time.delete_date,
    ...time.create_by,
    ...time.update_by,
    ...time.delete_by
  },
}
